package com.windgo.mapper;


import com.windgo.bean.bo.wxhomebo.WxCouponBo;

import com.windgo.bean.MarketCoupon;
import com.windgo.bean.MarketCouponExample;

import com.windgo.bean.vo.WxCouponMyListVO;

import com.windgo.bean.bo.wxhomebo.WxCouponBo;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MarketCouponMapper {
    List<WxCouponBo> selectAll();
    long countByExample(MarketCouponExample example);

    int deleteByExample(MarketCouponExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCoupon row);

    int insertSelective(MarketCoupon row);

    List<MarketCoupon> selectByExample(MarketCouponExample example);

    MarketCoupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketCoupon row, @Param("example") MarketCouponExample example);

    int updateByExample(@Param("row") MarketCoupon row, @Param("example") MarketCouponExample example);

    int updateByPrimaryKeySelective(MarketCoupon row);

    int updateByPrimaryKey(MarketCoupon row);

    // 2022/10/15 14点27分 mabai增加
    List<WxCouponMyListVO> selectByUserIdAndStatus(@Param("userId") Integer userId, @Param("status") Integer status);
    // 2022/10/16 12点40分 mabai增加
    MarketCoupon selectExchangeTypeCouponByCode(String code);



    BigDecimal queryMinValueById(Integer couponId);
}